package com.panfeng.xcloud.scheduler.dao.mapper;


import com.panfeng.xcloud.dao.assets.entity.CoinList;
import com.panfeng.xcloud.dao.assets.mapper.CoinListMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CoinListMapperExt extends CoinListMapper {

    List<CoinList> queryCoinListByExchangeType(@Param("exchangeType")Integer exchangeType,
                                               @Param("status")Integer status);

    List<CoinList> selectAll(@Param("status")Integer status);

    CoinList queryHuoBiCoinListByDestinationCoinAndSourceCoin(@Param("exchangeType")Integer exchangeType,
                                                              @Param("destinationCoin") String destinationCoin,
                                                              @Param("sourceCoin") String sourceCoin,
                                                              @Param("status")Integer status,
                                                              @Param("direction")String direction);

    List<CoinList> selectByCondition(@Param("exchangeType")Integer exchangeType,
                                     @Param("status")Integer status,
                                     @Param("direction")String direction);

    CoinList queryCoinListByDestinationCoinAndSourceCoin(@Param("exchangeType")Integer exchangeType,
                                                         @Param("destinationCoin") String destinationCoin,
                                                         @Param("sourceCoin") String sourceCoin,
                                                         @Param("status")Integer status,
                                                         @Param("direction")String direction);

}